import React from 'react';
import {connect} from 'react-redux';
import Search from '../pages/Search';
import { NavigatorIOS } from 'react-native';

class SearchContainer extends React.Component {
    render() {
        return (
        	<Search {...this.props} />
        )
    }
}

export default connect((state) => {
    const { homepageReducer } = state;
    return {
        homepageReducer
    }
})(SearchContainer);


/*
    <NavigatorIOS
                initialRoute={{
                    title: '搜索', 
                    component: Search,
                    passProps: { ...this.props },
                    leftButtonTitle : this.props.leftButtonTitle,
                    //leftButtonIcon : require('../imgs/t1.png'),
                    onLeftButtonPress : () => {
                        this.props.navigator.pop();
                    }
                }}
                style={{flex: 1}}
                // barTintColor='#996699'
                // titleTextColor="#ffffff"
                // tintColor="#ffffff"
            />

*/